package com.qtummatrix.controller;

import com.opensymphony.xwork2.ActionSupport;
import com.qtummatrix.service.AuthotityManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.HashMap;
import java.util.Map;

/**
 * create by Gongshiyong  2019-11-29 10:50
 */
@Controller("homePageAction")
public class GetHomePageInfoController extends ActionSupport  {

    @Autowired
    private AuthotityManagerService authotityManagerService;

    private Map<String, Object> info = new HashMap<String, Object>();

    public Map<String, Object> getInfo() {
        return info;
    }

    public void setInfo(Map<String, Object> info) {
        this.info = info;
    }

    public String getHomePageInfo(){
        String homePageInfo = authotityManagerService.getHomePageInfo();
        info.put("homeInfo",homePageInfo);
        return SUCCESS;
    }

}
